PeachDrawing.Skia.SkiaShapedRun
SkiaShapedRun(ushort[], float[], float[], uint[], float) Constructor
One run of text after shaping: which glyph to draw for each position, where each goes, and how wide the whole run is. All the arrays have one entry per glyph, in drawing order, and positions are relative to the start of the run on its baseline.
public SkiaShapedRun(ushort[] Glyphs, float[] XOffsets, float[] YOffsets, uint[] Clusters, float Width);
Parameters
Glyphs System.UInt16[]
the glyph ids, as the typeface numbers them
XOffsets System.Single[]
how far right of the run’s start each glyph’s origin is
YOffsets System.Single[]
how far below the baseline each glyph’s origin is (usually 0)
Clusters System.UInt32[]
for each glyph, the index in the source text of the first character it stands for
Width System.Single
the advance of the whole run